package uk.co.biggroup.lotto.syndicate;

public class DrawNumbers {
	
	private String numbers = "";
	private int counter;
	static int numbersCounter = 1;
	static String delimiter = ",";
	protected String[] temp;
	
	protected DrawNumbers(String numbers, int count) 
	{		
		setNumbers(numbers);
		temp = numbers.split(delimiter);
		for (int i = 0; i < temp.length; i++) { 
			int aInt = Integer.parseInt(temp[i]);
			if (aInt < 10) {
				temp[i] = 0 + Integer.toString(aInt);
			} else {
				temp[i] = Integer.toString(aInt);
			}
		}
		setCounter(count);
		numbersCounter++;
	}
	
	public void setCounter(int attCounter) {
		counter = attCounter;
	}

	public void setNumbers(String attNumbers) {
		numbers = attNumbers;
	}
	
	public String getNumbers()
	{	
		return numbers;
	}
	
	public String getObjectCounter()
	{	
		return Integer.toString(numbersCounter);
	}

	public String getCounter()
	{	
		return Integer.toString(counter);
	}
	
	public String getNO1()
	{	
		return temp[0];
	}
	
	public String getNO2()
	{
		return temp[1];
	}
	
	public String getNO3()
	{
		return temp[2];
	}
	
	public String getNO4()
	{
		return temp[3];
	}
	
	public String getNO5()
	{
		return temp[4];
	}
	
	public String getNO6()
	{
		return temp[5];
	}
	
	public String getNO7()
	{
		return temp[6];
	}
}
